//
//  Supplier.m
//  takeout
//
//  Created by Mac on 12-2-25.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "Supplier.h"

@implementation Supplier
@synthesize supplierId;
@synthesize supplierName;
@synthesize address;
@synthesize mapAddress;
@synthesize longitude;
@synthesize latitude;
@synthesize phone;
@synthesize joinTime;
@synthesize startTime;
@synthesize endTime;
@synthesize leastPrice;
@synthesize leastDistance;
@synthesize deliveryDesc;
@synthesize avgPrice;
@synthesize consumerecord;
@synthesize desc;
@synthesize supCateId;
@synthesize city;
@synthesize status;
@synthesize phone2;
@synthesize telephone;
@synthesize telephone2;
@synthesize road;
@synthesize imgUrl;
@synthesize modifyDate;
@synthesize supplierCategoryName;






- (id)copyWithZone:(NSZone *)zone {
    Supplier *supplierCopy = [[Supplier allocWithZone: zone] init];
    supplierCopy.supplierId = self.supplierId;
    supplierCopy.supplierName = self.supplierName;
    supplierCopy.address = self.address;
    supplierCopy.mapAddress = self.mapAddress;
    supplierCopy.phone = self.phone;
    supplierCopy.leastDistance = self.leastDistance;
    supplierCopy.leastPrice = self.leastPrice;
    supplierCopy.startTime = self.startTime;
    supplierCopy.endTime = self.endTime;
    supplierCopy.deliveryDesc = self.deliveryDesc;
    supplierCopy.desc = self.desc;
    supplierCopy.imgUrl = self.imgUrl;
    supplierCopy.modifyDate = self.modifyDate;
    supplierCopy.supplierCategoryName = self.supplierCategoryName;
    supplierCopy.consumerecord = self.consumerecord;
    
    
    return supplierCopy;
}





- (void)viewDidUnload{
    supplierName=nil;
    address=nil;
    mapAddress=nil;
    phone=nil;
    joinTime=nil;
    deliveryDesc=nil;
    desc=nil;
    status=nil;
    phone2=nil;
    telephone=nil;
    telephone2=nil;
    road=nil;
    imgUrl=nil;
    modifyDate=nil;
    supplierCategoryName=nil;
}










@end
